round(1.23, 1)

round(10.23, -1)
x = 1.23456
format(x,'0.2f')

'value is {:0.3f}'.format(x)